/**
 * Sounds
 * <p/>
 * User: joakimd
 * Date: 2013-04-12
 * Time: 11:09
 */
package org.dru.masic.trix {
import flash.media.Sound;

public class Samples {
    [Embed(source="opeq_Seq01_Track 01.mp3")]
    private var seq01_track01: Class;

    [Embed(source="opeq_Seq01_Track 02.mp3")]
    private var seq01_track02: Class;

    [Embed(source="opeq_Seq01_Track 04.mp3")]
    private var seq01_track04: Class;

    [Embed(source="opeq_Seq03_Track 01.mp3")]
    private var seq03_track01: Class;

    [Embed(source="opeq_Seq03_Track 02.mp3")]
    private var seq03_track02: Class;

    [Embed(source="opeq_Seq03_Track 03.mp3")]
    private var seq03_track03: Class;

    [Embed(source="opeq_Seq03_Track 04.mp3")]
    private var seq03_track04: Class;

    [Embed(source="opeq_Seq03_Track 05.mp3")]
    private var seq03_track05: Class;

    private var _samples: Vector.<ISample>; // seq, track

    public function Samples() {
        _samples = new Vector.<ISample>();
        _samples.push(EmptySample.INSTANCE); // 0
        _samples.push(new Sample(new seq01_track01() as Sound)); // 1
        _samples.push(new Sample(new seq01_track02() as Sound)); // 2
        _samples.push(new Sample(new seq01_track04() as Sound)); // 3
        _samples.push(new Sample(new seq03_track01() as Sound)); // 4
        _samples.push(new Sample(new seq03_track02() as Sound)); // 5
        _samples.push(new Sample(new seq03_track03() as Sound)); // 6
        _samples.push(new Sample(new seq03_track04() as Sound)); // 7
        _samples.push(new Sample(new seq03_track05() as Sound)); // 8
    }

    public function getSample(index: int): ISample {
        return _samples[index];
    }
}
}
